package com.example.cloudproviderpayment.controller;


import com.example.cloudproviderpayment.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhaoren
 * @since 2020-08-31
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @Resource
    private com.example.cloudproviderpayment.Service.StudentService studentService;

    @GetMapping("all")
    public List<Student> findAll(){
        List<Student> students = studentService.list();
        return students;
    }


}

